'''
@author: pnuzhnyi
'''

from django.http import HttpResponse
from django.shortcuts import render_to_response

from events.repository import events_repository
from events.workers import run_event_simulation

def event_run(request,event_id):
    event = events_repository().get_event_details(event_id)
    run_event_simulation(event)
    return HttpResponse("done!")